<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">{{a}}</div>
		<script type="text/javascript">
			var json = {
				a: 1
			};
			var vm = new Vue({
				el: "#app",
				data: json
			});
			console.log(vm.$data===json);
			console.log(vm.$el === document.getElementById("app"));
			vm.$watch("a", function(oldValue, newValue) {
				console.log("a oldvalue=" + oldValue + ",newValue=" + newValue);
			});
		</script>

	</body>
</html>
